t=eval(input())
i=0
judgelist=[]
while i<t:
    i+=1
    n=eval(input())
    test=[eval(x)for x in input().split()]
    j=0
    judge=0
    while j<len(test):
        if sum(test[:j+1])==sum(test[j+1:len(test)]):
            judge+=1
        j+=1
    if judge==1:judgelist.append(1)
    else:judgelist.append(0)
i=0
while i<t:
    if judgelist[i]==1:print('Yes')
    else:print('No')
    i+=1